<form name="frm" action="<?php echo $this->site['base_url']?>admin_user/save" method="post">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('user_lang.tt_page')?></td>
    <td class="title_button">
    <button type="button" name="btn_back" class="button back" onclick="location.href='<?php echo $this->site['base_url']?>admin_user/search'">
    <span><?php echo Kohana::lang('admin_lang.btn_back')?></span>
    </button>
    &nbsp;
    <button type="reset" name="btn_reset" class="button reset"/>
    <span><?php echo Kohana::lang('admin_lang.btn_reset')?></span>
    </button>
    &nbsp;
    <button type="submit" name="btn_save" class="button save">
    <span><?php echo Kohana::lang('admin_lang.btn_save')?></span>
    </button>
    </td>
  </tr>
</table>
<table class="form" cellspacing="0" cellpadding="5">
  	<!--<tr>
  	  	<td width="10%">{$lang.lbl_name}: <font color="#FF0000">*</font></td>
        <td>
        <input name="txt_name" type="text" id="txt_name" value="{$mr.user_name}" size="50"> 
        </td>
    </tr>-->
  	<tr>
  	  	<td width="10%"><?php echo Kohana::lang('user_lang.lbl_username')?>: <font color="#FF0000">*</font></td>
    	<td>
        <input name="txt_username" type="text" id="txt_username" value="<?php echo isset($mr['admin_name'])?$mr['admin_name']:''?>" size="50">
    	</td>
  	</tr>
  	<tr>
  	  	<td><?php echo Kohana::lang('user_lang.lbl_pass')?>:</td>
    	<td><input name="txt_pass" type="text" id="txt_pass">
		<?php if(isset($mr['admin_id']) && $mr['admin_id']) echo Kohana::lang('user_lang.lbl_set_new_pass')?></td>
  	</tr>
  	<tr>
  	  	<td><?php echo Kohana::lang('user_lang.lbl_email')?>:</td>
    	<td><input name="txt_email" id="txt_email" type="text" value="<?php echo isset($mr['admin_email'])?$mr['admin_email']:''?>" size="50"></td>
  	</tr>
  	<tr>
  	  	<td><?php echo Kohana::lang('user_lang.lbl_rule')?>:</td>
        <td>
        <select name="sel_role" id="sel_role">
          <option value="1">Admin</option>
        </select>
        </td>
    </tr>
	<tr>
	  	<td><?php echo Kohana::lang('admin_lang.lbl_status')?>:</td>
        <td>
        <select name="sel_status" id="sel_status">
            <option value="0"><?php echo Kohana::lang('admin_lang.lbl_inactive')?></option>	
          	<option value="1" <?php if(isset($mr['admin_status']) && $mr['admin_status']==1) echo 'selected'?> ><?php echo Kohana::lang('admin_lang.lbl_active')?></option>
        </select>
        </td>
	</tr>
    <tr>
      	<td>&nbsp;</td>
		<td><input name="hd_id" type="hidden" id="hd_id" value="<?php echo isset($mr['admin_id'])?$mr['admin_id']:''?>"/></td>
	</tr>
</table>
</form>